const path = require("path");
module.exports = {
  // 基本路径 baseURL已经过时
  publicPath: "/wx-cloud-front/",
  // 输出文件目录
  outputDir: "dist",
  // eslint-loader 是否在保存的时候检查
  lintOnSave: true,
  // use the full build with in-browser compiler?
  // https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only
  // compiler: false,
  // webpack配置
  // see https://github.com/vuejs/vue-cli/blob/dev/docs/webpack.md
  configureWebpack: () => {},
  // vue-loader 配置项
  // https://vue-loader.vuejs.org/en/options.html
  // vueLoader: {},
  // 生产环境是否生成 sourceMap 文件
  productionSourceMap: false,
  chainWebpack: (config) => {
    config.resolve.alias.set("@", path.resolve(__dirname, "./src"));
    config.module
      .rule("md")
      .test(/\.md$/)
      .use("text-loader")
      .loader("text-loader")
      .tap((options) => {
       
        return options;
      });
  },
  devServer: {
    open: false,
    port: 7080,
    overlay: {
      warnings: false,
      errors: true,
    },
  },

  // 第三方插件配置
  pluginOptions: {
    // ...
  },
};
